package lol.clann.minecraft.springboot.plugin.bukkit.mapper;

import lol.clann.minecraft.springboot.api.bukkit.model.bank.Bank;
import org.apache.ibatis.annotations.Param;

/**
 *
 * @author pyz
 * @date 2019/8/18 5:26 PM
 */
public interface BankMapper {

    Bank findBank(@Param("playerName") String playerName, @Param("onlineBankType") String onlineBankType);

    Bank getBank(@Param("id")long id);

    Bank getAndLockBank(@Param("bankId") long bankId);

    void lockBankTable();

    void unlockBankTable();

    void insertBank(Bank bank);

    void pay(@Param("id") long id, @Param("amount") double amount);
}
